package com.cosina.game.robodefence.ui.drawable;

import android.graphics.Bitmap;
import android.graphics.Canvas;

import com.cosina.game.robodefence.core.BattleEngine;
import com.cosina.game.robodefence.model.Enemy;
import com.cosina.game.robodefence.ui.ImageManager;
import com.cosina.game.robodefence.ui.PaintSuite;

public class EnemiesDrawable extends BaseDrawable {

	@Override
	public void draw(Canvas canvas) {
		for(Enemy each : BattleEngine.enemyManager.enemies){
			String drection = each.getDirection();
			int kind = each.kind;
			Bitmap frame = ImageManager.getEnemyFrame(drection, kind);
			canvas.drawBitmap(frame, each.getPxX(), each.getPxY(), PaintSuite.p4Text);
		}
	}
}
